/*
 * Created on 11/12/2006
 * cyc4
 */
package mypodsync.service;

public abstract class AbstractService implements Service {

    protected ServiceManager serviceManager;
    
    @Override
    public boolean equals(Object obj) {
        if (obj instanceof AbstractService) {
            AbstractService serv = (AbstractService) obj;
            return getName().equals(serv.getName());
        }
        return false;
    }
    
    @Override
    public int hashCode() {
        return getName().hashCode();
    }
    
    @Override
    public String toString() {
        return getName();
    }
    
    public void setServiceManager(ServiceManager serviceManager) {
        this.serviceManager = serviceManager;
    }
    
}
